package com.allwees.bs.core.model.user.entity;

import com.allwees.bs.core.model.coupon.constant.ECashLogType;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@MappedSuperclass
public abstract class UserCashLogDefModel extends BaseEntity {

    /** 用户uuid **/
    @Column(length = 64)
    protected String userUuid;

    @Column(length = 64)
    protected String cashActiveUuid;

    /** 使用类型 **/
    @Column(length = 48)
    @Enumerated(EnumType.STRING)
    protected ECashLogType logType;

    /** 积分 **/
    protected BigDecimal value;

    /** 关联 key **/
    protected String relateKey;

    /** remark **/
    protected String remark;
}
